# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-txaio
pkgver=21.2.1
pkgrel=2
pkgdesc="Compatibility API between asyncio/Twisted/Trollius"
url="https://github.com/crossbario/txaio"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="
	py3-mock
	py3-pytest
	"
source="https://pypi.python.org/packages/source/t/txaio/txaio-$pkgver.tar.gz"
options="!check" # Depends on deprecated and unmaintained trollius package
builddir="$srcdir/txaio-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="762875b9c10304dab31dd54f7830f56b0cc26dd6e7a98c8faf57891a2810e36f53004833f872f0f51bad61cb62be033cfc228c99fd6aff60cd4dd2ae2f2e5c37  txaio-21.2.1.tar.gz"
